Optimal. Leaf size=90 \[ \frac {3 x}{128}+\frac {3 \cos (a+b x) \sin (a+b x)}{128 b}+\frac {\cos ^3(a+b x) \sin (a+b x)}{64 b}-\frac {\cos ^5(a+b x) \sin (a+b x)}{16 b}-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {2648, 2715, 8}
\begin {gather*} -\frac {\sin ^3(a+b x) \cos ^5(a+b x)}{8 b}-\frac {\sin (a+b x) \cos ^5(a+b x)}{16 b}+\frac {\sin (a+b x) \cos ^3(a+b x)}{64 b}+\frac {3 \sin (a+b x) \cos (a+b x)}{128 b}+\frac {3 x}{128} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2648
Rule 2715
Rubi steps
\begin {align*} \int \cos ^4(a+b x) \sin ^4(a+b x) \, dx &=-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b}+\frac {3}{8} \int \cos ^4(a+b x) \sin ^2(a+b x) \, dx\\ &=-\frac {\cos ^5(a+b x) \sin (a+b x)}{16 b}-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b}+\frac {1}{16} \int \cos ^4(a+b x) \, dx\\ &=\frac {\cos ^3(a+b x) \sin (a+b x)}{64 b}-\frac {\cos ^5(a+b x) \sin (a+b x)}{16 b}-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b}+\frac {3}{64} \int \cos ^2(a+b x) \, dx\\ &=\frac {3 \cos (a+b x) \sin (a+b x)}{128 b}+\frac {\cos ^3(a+b x) \sin (a+b x)}{64 b}-\frac {\cos ^5(a+b x) \sin (a+b x)}{16 b}-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b}+\frac {3 \int 1 \, dx}{128}\\ &=\frac {3 x}{128}+\frac {3 \cos (a+b x) \sin (a+b x)}{128 b}+\frac {\cos ^3(a+b x) \sin (a+b x)}{64 b}-\frac {\cos ^5(a+b x) \sin (a+b x)}{16 b}-\frac {\cos ^5(a+b x) \sin ^3(a+b x)}{8 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 33, normalized size = 0.37 \begin {gather*} \frac {24 (a+b x)-8 \sin (4 (a+b x))+\sin (8 (a+b x))}{1024 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 72, normalized size = 0.80
method | result | size |
risch | \(\frac {3 x}{128}+\frac {\sin \left (8 b x +8 a \right )}{1024 b}-\frac {\sin \left (4 b x +4 a \right )}{128 b}\) | \(33\) |
derivativedivides | \(\frac {-\frac {\left (\cos ^{5}\left (b x +a \right )\right ) \left (\sin ^{3}\left (b x +a \right )\right )}{8}-\frac {\left (\cos ^{5}\left (b x +a \right )\right ) \sin \left (b x +a \right )}{16}+\frac {\left (\cos ^{3}\left (b x +a \right )+\frac {3 \cos \left (b x +a \right )}{2}\right ) \sin \left (b x +a \right )}{64}+\frac {3 b x}{128}+\frac {3 a}{128}}{b}\) | \(72\) |
default | \(\frac {-\frac {\left (\cos ^{5}\left (b x +a \right )\right ) \left (\sin ^{3}\left (b x +a \right )\right )}{8}-\frac {\left (\cos ^{5}\left (b x +a \right )\right ) \sin \left (b x +a \right )}{16}+\frac {\left (\cos ^{3}\left (b x +a \right )+\frac {3 \cos \left (b x +a \right )}{2}\right ) \sin \left (b x +a \right )}{64}+\frac {3 b x}{128}+\frac {3 a}{128}}{b}\) | \(72\) |
norman | \(\frac {\frac {3 x}{128}-\frac {3 \tan \left (\frac {b x}{2}+\frac {a}{2}\right )}{64 b}-\frac {23 \left (\tan ^{3}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}+\frac {333 \left (\tan ^{5}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}-\frac {671 \left (\tan ^{7}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}+\frac {671 \left (\tan ^{9}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}-\frac {333 \left (\tan ^{11}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}+\frac {23 \left (\tan ^{13}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}+\frac {3 \left (\tan ^{15}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64 b}+\frac {3 x \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {21 x \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{32}+\frac {21 x \left (\tan ^{6}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {105 x \left (\tan ^{8}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{64}+\frac {21 x \left (\tan ^{10}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {21 x \left (\tan ^{12}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{32}+\frac {3 x \left (\tan ^{14}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {3 x \left (\tan ^{16}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{128}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{8}}\) | \(259\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 33, normalized size = 0.37 \begin {gather*} \frac {24 \, b x + 24 \, a + \sin \left (8 \, b x + 8 \, a\right ) - 8 \, \sin \left (4 \, b x + 4 \, a\right )}{1024 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 56, normalized size = 0.62 \begin {gather*} \frac {3 \, b x + {\left (16 \, \cos \left (b x + a\right )^{7} - 24 \, \cos \left (b x + a\right )^{5} + 2 \, \cos \left (b x + a\right )^{3} + 3 \, \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )}{128 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 189 vs.
\(2 (80) = 160\).
time = 1.67, size = 189, normalized size = 2.10 \begin {gather*} \begin {cases} \frac {3 x \sin ^{8}{\left (a + b x \right )}}{128} + \frac {3 x \sin ^{6}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{32} + \frac {9 x \sin ^{4}{\left (a + b x \right )} \cos ^{4}{\left (a + b x \right )}}{64} + \frac {3 x \sin ^{2}{\left (a + b x \right )} \cos ^{6}{\left (a + b x \right )}}{32} + \frac {3 x \cos ^{8}{\left (a + b x \right )}}{128} + \frac {3 \sin ^{7}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{128 b} + \frac {11 \sin ^{5}{\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{128 b} - \frac {11 \sin ^{3}{\left (a + b x \right )} \cos ^{5}{\left (a + b x \right )}}{128 b} - \frac {3 \sin {\left (a + b x \right )} \cos ^{7}{\left (a + b x \right )}}{128 b} & \text {for}\: b \neq 0 \\x \sin ^{4}{\left (a \right )} \cos ^{4}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.43, size = 32, normalized size = 0.36 \begin {gather*} \frac {3}{128} \, x + \frac {\sin \left (8 \, b x + 8 \, a\right )}{1024 \, b} - \frac {\sin \left (4 \, b x + 4 \, a\right )}{128 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.50, size = 90, normalized size = 1.00 \begin {gather*} \frac {3\,x}{128}-\frac {-\frac {3\,{\mathrm {tan}\left (a+b\,x\right )}^7}{128}-\frac {11\,{\mathrm {tan}\left (a+b\,x\right )}^5}{128}+\frac {11\,{\mathrm {tan}\left (a+b\,x\right )}^3}{128}+\frac {3\,\mathrm {tan}\left (a+b\,x\right )}{128}}{b\,\left ({\mathrm {tan}\left (a+b\,x\right )}^8+4\,{\mathrm {tan}\left (a+b\,x\right )}^6+6\,{\mathrm {tan}\left (a+b\,x\right )}^4+4\,{\mathrm {tan}\left (a+b\,x\right )}^2+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________